package com.wzcl.app.service;

import com.wzcl.app.dao.model.AppUser;
import com.wzcl.app.model.common.MyPage;
import com.wzcl.app.model.dto.UserDto;

import java.util.List;

public interface UserService extends BaseService<AppUser,UserDto>{

    AppUser registerUser(UserDto userDto);

    AppUser addUser(UserDto userDto);

    AppUser updateUser(UserDto userDto);

    AppUser saveUser(AppUser user);

    AppUser getUserById(Integer id);

    List<AppUser> getUserById(List<Integer> ids);

    List<AppUser> getUserList(UserDto userDto);

    MyPage<AppUser> getUserPage(UserDto userDto);

    AppUser getUserByPhone(String phone);

    AppUser editPwd(UserDto userDto);

    AppUser editPwd(String phone, String password);

    AppUser changeUserState(UserDto userDto);

    AppUser changeUserGrade(UserDto userDto);

    AppUser changeRealName(UserDto userDto);

    AppUser getAndCheckByPhone(String phone);

    AppUser updateAdminUser(UserDto userDto);

    void delUserByPhone(String phone);
}
